<?php
class TagDao extends BaseDao
{
	public function __construct()
	{
		parent::__construct();
		$this->tg 	= $this->db->getTDG(C('LtConfig')->get('db.table.prefix')."tag");
	}
	
	public function getByName($name)
	{
		$condition['expression']	= 'name=:name';
		$condition['value']['name']	= $name;
		$result = $this->fetch($condition);
		
		return $result;
	}
}